<?php
define('IS_POST',$_SERVER['REQUEST_METHOD']=='POST'?TRUE:FALSE);
if(!function_exists('p')){
    function p($var){
        echo '<pre style="background:#ccc;padding: 10px;border-radius: 4px">' . print_r($var,true) . '</pre>';
    }
}